import '../utils/storage.dart';

/// 常量
class Constants {
  // 服务器API
  static String get baseUrl => getBaseUrl();
  static String getBaseUrl() {
    String url = Storage().getString('testBaseUrl');
    if (url.isNotEmpty) return url;
    return 'http://www.baidu.com';
  }

  // 本地存储key
  static const storageAppInit = 'initAppAgree'; // 存储App初始化是否同意了用户协议与隐私政策

  // AES 与后端保持一致
  static const aesKey = 'aesKey';
  static const aesIV = 'aesIV';

  // 高德地图Android端AK
  static const aMapAndroidAppKey = "aMapAndroidAppKey";
  // 高德地图iOS端AK
  static const aMapIosAppKey = 'aMapIosAppKey';
  // 腾讯 tim app id
  static const timAppID = 111111111;

  // ios universal_link，修改此值需记得修改pubspec.yaml中的universal_link
  static const qqIosLinks = 'qqIosLinks';
  static const wxIosLinks = 'hwxIosLinks';

  ///QQ的AppID和AppKey
  static const qqAppID = 'qqAppID';
  static const qqAppKey = 'qqAppKey';

  ///微信的APPID和appSecret
  static const wxAppID = 'wxAppID';
  static const wxAppSecret = 'wxAppSecret';
}
